package com.atguigu.cloud.service;

import com.alibaba.csp.sentinel.annotation.SentinelResource;
import org.springframework.stereotype.Service;

@Service
public class FlowLimitService {

    @SentinelResource(value = "common") // @SentinelResource是一个流量方位防护组件注解,用于指定防护资源,对配置的资源进行流程控制、熔断降级等功能
    public void common() {
        System.out.println("---- flow limit service come in");
    }

}
